package cn.outmaneuver.outman.web.basic.domain.request;
/**
 * Copyright 2023-2023 by DongYaoMing. All Rights Reserved.
 */

import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import java.util.List;

/**
 * ComplexObjectDTO
 * <p> 复杂对象dto </p>
 *
 * @author DongYaoMing
 * @version 1.0
 * @date 2023/10/17
 */
public class ComplexObjectDTO extends PostAndFormDTO {

    @Valid
    private PostAndFormDTO postAndFormDTO;
    @Valid
    private List<PostAndFormDTO> data;

    public PostAndFormDTO getPostAndFormDTO() {
        return postAndFormDTO;
    }

    public void setPostAndFormDTO(PostAndFormDTO postAndFormDTO) {
        this.postAndFormDTO = postAndFormDTO;
    }

    public List<PostAndFormDTO> getData() {
        return data;
    }

    public void setData(List<PostAndFormDTO> data) {
        this.data = data;
    }
}
